package org.alis.ap.rpc.server;

import org.alis.ap.rpc.Request;
import org.alis.ap.rpc.utils.ReflectionUtils;

/**
 * ServiceInvoker desc:
 *
 * @author luochuan
 * @date 2020/10/16 17:41
 */
public class ServiceInvoker {

    public Object invoke(ServiceInstance serviceInstance, Request request){
        return ReflectionUtils.invoke(serviceInstance.getTarget(),serviceInstance.getMethod(),request.getParameter());
    }
}

